<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>业主管理</title>
		<link rel="stylesheet" type="text/css" href="../css/yzgl.css"/>
		<script type="text/javascript" src="../js/gly.js"></script>
	</head>
	<body>
		<div class="z"> &nbsp;首页&nbsp;>&nbsp;业主管理&nbsp;>&nbsp;业主列表</div><p></p>
		<div class="a">
			<input type="text" class="ss" placeholder="根据业主账号查询">
			<input type="text" class="ss" placeholder="根据业主姓名查询">
			<button class="sousuo" onclick="sousuo('user')">搜索</button>
		</div><p></p>
		<div class="b">
			<button class="yezhu" onclick="location.href='/user/yztj'"><b>+</b>添加业主信息</button>
		</div><p></p>
		<table>
			<tr bgcolor="#aaffff">
				<td>业主账号</td>
				<td>业主姓名</td>
				<td>联系方式</td>
				<td>小区名称</td>
				<td>小区地址</td>
				<td>具体位置</td>
				<td>录入日期</td>
				<td>操作</td>
			</tr>
			<tr th:each="s:${session.users}">
				<td th:text="${s.username}"></td>
				<td th:text="${s.realname}"></td>
				<td th:text="${s.phone}"></td>
				<td th:text="${s.xiaoqu.name}"></td>
				<td th:text="${s.xiaoqu.address}"></td>
				<td th:text="${s.jtwz}"></td>
				<td th:text="${#dates.format(s.registeDate,'yyyy-MM-dd')}"></td>
				<td>
					<input type="button" value="修改" th:onclick="xiugai([['user']],[[${s.id}]])" >
					<input type="button" value="删除" th:onclick="shanchu([['user']],[[${s.id}]])">
				</td>
			</tr>
		</table><p></p>
		<div class="weibu">
			<a href="/user/fenye?a=1">首页</a>
			<a th:href="@{/user/fenye(a=${session.yeshu-1})}">上一页</a>
			<a th:href="@{/user/fenye(a=${session.yeshu+1})}">下一页</a>
			<a th:href="@{/user/fenye(a=${session.weiye})}">尾页</a>
			<p>共<span th:text="${session.zong}"></span>条记录，当前显示第<span th:text="${session.yeshu}"></span>页，总<span th:text="${session.weiye}"></span>页</p>
		</div>
	</body>
</html>
